import useAuthStore from "@/store/authStore";

export const usePermission = () => {
  const hasPermission = useAuthStore((state) => state.hasPermission);
  const hasRole = useAuthStore((state) => state.hasRole);

  return { hasPermission, hasRole };
};
